package com.clz.appdesign.mvvm;

/**
 * @author chenliangzhi
 * @date 2018/9/20
 * @describe
 */

public class Data<T> {
    private T mData;
    private String mErrorMessage;

    public Data(T data, String errorMessage) {
        mData = data;
        mErrorMessage = errorMessage;
    }

    public T getData() {
        return mData;
    }

    public void setData(T data) {
        mData = data;
    }

    public String getErrorMessage() {
        return mErrorMessage;
    }

    public void setErrorMessage(String errorMessage) {
        mErrorMessage = errorMessage;
    }
}
